home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-06-25 | 1.3 KB | 56 lines |
- # $Id: Makefile,v 1.5 2000/06/17 06:46:26 baran Exp $
- # slightly rewritten original Wilhelm Noeker's Makefile
-
- targets = cookietool cdbsplit
- objects = cookietool.o cdbsplit.o strstuff.o
- prefix = usr
- binprefix = $(prefix)/games
- manprefix = $(prefix)/share/man/man6
- CC = gcc
- RM = rm
- INSTALL = install
- CFLAGS = -O2 -Wall
-
- #RM = C:delete
- #INSTALL = C:copy
- #LOADLIBES = -noixemul
-
- build : $(targets)
-
- strstuff.o : strstuff.c strstuff.h
-
- cookietool : cookietool.o strstuff.o
- cookietool.o : cookietool.c strstuff.h
-
- cdbsplit : cdbsplit.o strstuff.o
- cdbsplit.o : cdbsplit.c strstuff.h
-
- # for AmigaOS change clean-unix to clean-amiga
- clean : clean-unix
-
- clean-amiga :
- $(RM) $(targets) $(objects)
-
- clean-unix :
- -$(RM) $(targets) $(objects)
-
- # for AmigaOS installation change install-binary-unix to
- # install-binary-amiga; for non-debian-installation, use `make all'
-
- install : install-binary-unix # install-manpages
-
- install-binary-amiga :
- $(INSTALL) $(targets) C:
-
- install-binary-unix :
- @for file in $(targets); do \
- $(INSTALL) -m 0755 $$file $(DESTDIR)/$(binprefix)/$$file; \
- done;
-
- install-manpages :
- @for file in doc/*.6; do \
- $(INSTALL) -m 0644 $$file $(DESTDIR)/$(manprefix)/$$file; \
- done;
-
- all : build install install-manpages
-